package com.leyou.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取分布式ID配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "ly.worker")
public class IdWorkerProperties {
    private Integer workerId;
    private Integer dataCenterId;
}
